<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SAColorGridWidget::PrivateData类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_color_grid_widget_1_1_private_data.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_s_a_color_grid_widget_1_1_private_data-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SAColorGridWidget::PrivateData类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a005ed307da25a031e9fd4773bd7f1c77" id="r_a005ed307da25a031e9fd4773bd7f1c77"><td class="memItemLeft" align="right" valign="top"><a id="a005ed307da25a031e9fd4773bd7f1c77" name="a005ed307da25a031e9fd4773bd7f1c77"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PrivateData</b> (<a class="el" href="class_s_a_color_grid_widget.html">SAColorGridWidget</a> *p)</td></tr>
<tr class="separator:a005ed307da25a031e9fd4773bd7f1c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dcde2be7a0117ccb3393813356ad7ec" id="r_a1dcde2be7a0117ccb3393813356ad7ec"><td class="memItemLeft" align="right" valign="top"><a id="a1dcde2be7a0117ccb3393813356ad7ec" name="a1dcde2be7a0117ccb3393813356ad7ec"></a>
<a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getColorToolButtonAt</b> (int index)</td></tr>
<tr class="separator:a1dcde2be7a0117ccb3393813356ad7ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fe06be9c7f48f3fccc06a35c5047fa1" id="r_a5fe06be9c7f48f3fccc06a35c5047fa1"><td class="memItemLeft" align="right" valign="top"><a id="a5fe06be9c7f48f3fccc06a35c5047fa1" name="a5fe06be9c7f48f3fccc06a35c5047fa1"></a>
<a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getColorToolButtonAt</b> (int r, int c)</td></tr>
<tr class="separator:a5fe06be9c7f48f3fccc06a35c5047fa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6d7f0cb5ce97c62c0c6a3c7807d3e23" id="r_af6d7f0cb5ce97c62c0c6a3c7807d3e23"><td class="memItemLeft" align="right" valign="top"><a id="af6d7f0cb5ce97c62c0c6a3c7807d3e23" name="af6d7f0cb5ce97c62c0c6a3c7807d3e23"></a>
<a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getCheckedButton</b> () const</td></tr>
<tr class="separator:af6d7f0cb5ce97c62c0c6a3c7807d3e23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e9992b74bad84af7353f4cbbafce0e4" id="r_a4e9992b74bad84af7353f4cbbafce0e4"><td class="memItemLeft" align="right" valign="top"><a id="a4e9992b74bad84af7353f4cbbafce0e4" name="a4e9992b74bad84af7353f4cbbafce0e4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGridColor</b> (bool isRemoveSpacer=false)</td></tr>
<tr class="memdesc:a4e9992b74bad84af7353f4cbbafce0e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据mColors更新布局 <br /></td></tr>
<tr class="separator:a4e9992b74bad84af7353f4cbbafce0e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d2b0546a2e93daaccb6e478850d642a" id="r_a8d2b0546a2e93daaccb6e478850d642a"><td class="memItemLeft" align="right" valign="top"><a id="a8d2b0546a2e93daaccb6e478850d642a" name="a8d2b0546a2e93daaccb6e478850d642a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGridColorSize</b> ()</td></tr>
<tr class="memdesc:a8d2b0546a2e93daaccb6e478850d642a"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新colorsize <br /></td></tr>
<tr class="separator:a8d2b0546a2e93daaccb6e478850d642a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1442275234cbf50483b90fa7de35fdb" id="r_af1442275234cbf50483b90fa7de35fdb"><td class="memItemLeft" align="right" valign="top"><a id="af1442275234cbf50483b90fa7de35fdb" name="af1442275234cbf50483b90fa7de35fdb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateGridColorCheckable</b> ()</td></tr>
<tr class="separator:af1442275234cbf50483b90fa7de35fdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a688eb86a830069d61659dec27d22a6b6" id="r_a688eb86a830069d61659dec27d22a6b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a688eb86a830069d61659dec27d22a6b6">iterationColorBtns</a> (SAColorGridWidget::FunColorBtn fn)</td></tr>
<tr class="memdesc:a688eb86a830069d61659dec27d22a6b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">遍历所有的button  <br /></td></tr>
<tr class="separator:a688eb86a830069d61659dec27d22a6b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a740e360919c17ed4e17b716475a6508a" id="r_a740e360919c17ed4e17b716475a6508a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a740e360919c17ed4e17b716475a6508a">removeAt</a> (int r, int c)</td></tr>
<tr class="memdesc:a740e360919c17ed4e17b716475a6508a"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除网格窗口  <br /></td></tr>
<tr class="separator:a740e360919c17ed4e17b716475a6508a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69e53c371a5007a5f811dc7f0d8ad923" id="r_a69e53c371a5007a5f811dc7f0d8ad923"><td class="memItemLeft" align="right" valign="top"><a id="a69e53c371a5007a5f811dc7f0d8ad923" name="a69e53c371a5007a5f811dc7f0d8ad923"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setColorAt</b> (const QColor &amp;clr, int r, int c)</td></tr>
<tr class="separator:a69e53c371a5007a5f811dc7f0d8ad923"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a961c4e26338110936e76ea0e26e66eff" id="r_a961c4e26338110936e76ea0e26e66eff"><td class="memItemLeft" align="right" valign="top"><a id="a961c4e26338110936e76ea0e26e66eff" name="a961c4e26338110936e76ea0e26e66eff"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isSpacer</b> (int r, int c) const</td></tr>
<tr class="separator:a961c4e26338110936e76ea0e26e66eff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a3fac10183cbc56a7a8caf7de29c9d7a1" id="r_a3fac10183cbc56a7a8caf7de29c9d7a1"><td class="memItemLeft" align="right" valign="top"><a id="a3fac10183cbc56a7a8caf7de29c9d7a1" name="a3fac10183cbc56a7a8caf7de29c9d7a1"></a>
QList&lt; QColor &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mColors</b></td></tr>
<tr class="separator:a3fac10183cbc56a7a8caf7de29c9d7a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4659fbecced7023616efeda248fde49" id="r_ac4659fbecced7023616efeda248fde49"><td class="memItemLeft" align="right" valign="top"><a id="ac4659fbecced7023616efeda248fde49" name="ac4659fbecced7023616efeda248fde49"></a>
QGridLayout *&#160;</td><td class="memItemRight" valign="bottom"><b>mGridLayout</b> { nullptr }</td></tr>
<tr class="separator:ac4659fbecced7023616efeda248fde49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27367c4b1e69a27f813346bec325f63f" id="r_a27367c4b1e69a27f813346bec325f63f"><td class="memItemLeft" align="right" valign="top"><a id="a27367c4b1e69a27f813346bec325f63f" name="a27367c4b1e69a27f813346bec325f63f"></a>
QButtonGroup *&#160;</td><td class="memItemRight" valign="bottom"><b>mButtonGroup</b> { nullptr }</td></tr>
<tr class="separator:a27367c4b1e69a27f813346bec325f63f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8943c16464d9b413ea8e11382da1aee4" id="r_a8943c16464d9b413ea8e11382da1aee4"><td class="memItemLeft" align="right" valign="top"><a id="a8943c16464d9b413ea8e11382da1aee4" name="a8943c16464d9b413ea8e11382da1aee4"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>mIconSize</b> { 16, 16 }</td></tr>
<tr class="separator:a8943c16464d9b413ea8e11382da1aee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab55f20d477da022ad0f748963903b44d" id="r_ab55f20d477da022ad0f748963903b44d"><td class="memItemLeft" align="right" valign="top"><a id="ab55f20d477da022ad0f748963903b44d" name="ab55f20d477da022ad0f748963903b44d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mColumnCount</b> { 8 }</td></tr>
<tr class="memdesc:ab55f20d477da022ad0f748963903b44d"><td class="mdescLeft">&#160;</td><td class="mdescRight">列数，行数量会根据列数量来匹配,如果设置-1或者0，说明不限定列数量，这样会只有一行 <br /></td></tr>
<tr class="separator:ab55f20d477da022ad0f748963903b44d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38c70279cabbcf982f43760bd3411f26" id="r_a38c70279cabbcf982f43760bd3411f26"><td class="memItemLeft" align="right" valign="top"><a id="a38c70279cabbcf982f43760bd3411f26" name="a38c70279cabbcf982f43760bd3411f26"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mColorCheckable</b></td></tr>
<tr class="memdesc:a38c70279cabbcf982f43760bd3411f26"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置颜色是否是checkable <br /></td></tr>
<tr class="separator:a38c70279cabbcf982f43760bd3411f26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c617e9c3fd08977ba2ca032d67f349f" id="r_a3c617e9c3fd08977ba2ca032d67f349f"><td class="memItemLeft" align="right" valign="top"><a id="a3c617e9c3fd08977ba2ca032d67f349f" name="a3c617e9c3fd08977ba2ca032d67f349f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mHorizontalSpacerToRight</b> { false }</td></tr>
<tr class="memdesc:a3c617e9c3fd08977ba2ca032d67f349f"><td class="mdescLeft">&#160;</td><td class="mdescRight">最右边是否有弹簧 <br /></td></tr>
<tr class="separator:a3c617e9c3fd08977ba2ca032d67f349f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="a688eb86a830069d61659dec27d22a6b6" name="a688eb86a830069d61659dec27d22a6b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a688eb86a830069d61659dec27d22a6b6">&#9670;&#160;</a></span>iterationColorBtns()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::PrivateData::iterationColorBtns </td>
          <td>(</td>
          <td class="paramtype">SAColorGridWidget::FunColorBtn</td>          <td class="paramname"><span class="paramname"><em>fn</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>遍历所有的button </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fn</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a740e360919c17ed4e17b716475a6508a" name="a740e360919c17ed4e17b716475a6508a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a740e360919c17ed4e17b716475a6508a">&#9670;&#160;</a></span>removeAt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorGridWidget::PrivateData::removeAt </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>r</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>c</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>删除网格窗口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td></td></tr>
    <tr><td class="paramname">c</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/colorWidgets/<b>SAColorGridWidget.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_color_grid_widget.html">SAColorGridWidget</a></li><li class="navelem"><a class="el" href="class_s_a_color_grid_widget_1_1_private_data.html">PrivateData</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
